<?php
defined ( 'IN_TS' ) or die ( 'Access Denied.' );

// 分类
$arrCate = $new ['article']->findAll ( 'article_cate',null,'orderid desc');
//处所
$Group = $new ['article']->findAll('group','', 'groupid asc');
foreach($Group as $v){
    if($v['ispost']==0){
        $arrGroup[]=$v;
    }else{
        $isGroupUser = aac('group')->find ( 'group_user', array (
            'userid' => $TS_USER['userid'],
            'groupid' => $v['groupid']
        ) );
        if($isGroupUser){
            $arrGroup[]=$v;
        }
    }
}